MVCControl=cc.Class.extend({
	mediators:null,
	ctor:function(){
		this.mediators=[];
	},
	registerMediator:function(mediator) {
		this.mediators.push(mediator);
	},
	sendCommand:function(cmd){
		for(var i=0;i<this.mediators.length;++i)
		{
			var mm=this.mediators[i];
			if(mm.processCommand(cmd)==true)
			{
				break;
			}
		}
	}
});

var g_control=new MVCControl();



MVCCommand=cc.Class.extend({
	type:"",
	name:"",
	data:null,
	id:0,
	ctor:function(){

	}
});



MVCMediator=cc.Class.extend({
	processCommand:function(cmd){

	}
});